
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 商品_门店关系Entity
 * @author yinhao
 * @version 2017-10-09
 */
public class StoreGoods extends DataEntity<StoreGoods> {
	
	private static final long serialVersionUID = 1L;
	private String storeCode;		// 门店号
	private String goodsCode;		// 商品号
	private Integer stock;		// 库存
	private Integer isHistorySell;		// 是否历史：0否，1是
	private Integer isHistoryStocks;		// 审核状态：0否，1是
	private Integer sellNum;		// int
	
	public StoreGoods() {
		super();
	}

	public StoreGoods(String id){
		super(id);
	}

	@Length(min=0, max=30, message="门店号长度必须介于 0 和 30 之间")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
	@Length(min=0, max=30, message="商品号长度必须介于 0 和 30 之间")
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	
	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}
	
	public Integer getIsHistorySell() {
		return isHistorySell;
	}

	public void setIsHistorySell(Integer isHistorySell) {
		this.isHistorySell = isHistorySell;
	}
	
	public Integer getIsHisttoryStocks() {
		return isHistoryStocks;
	}

	public void setIsHisttoryStocks(Integer isHisttoryStocks) {
		this.isHistoryStocks = isHisttoryStocks;
	}
	
	public Integer getSellNum() {
		return sellNum;
	}

	public void setSellNum(Integer sellNum) {
		this.sellNum = sellNum;
	}
	
}